import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"
// 冲刀入库单查询
export const PunchingKnifeEntryListQuery = (parms:any) => {
    return service.put<any,any>(`/bioDeptWrok/getCutOutHeadQuery`,parms)
}

// 冲刀入库明细查询
export const PunchingKnifeStorageDetailsQuery = (slipNo:string) => {
    return service.post<any,any>(`/bioDeptWrok/getCutOutDetQuery?slipNo=${slipNo}`)
}

// 检核
export const counterCheck = (slipNo:string) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/CutOutHeadCheck?slipNo=${slipNo}`)
}

// 整单删除
export const deletecounterCheck = (slipNo:string) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/CutOutDelete?slipNo=${slipNo}`)
}

// 整单新增
export const AddPunchingKnifeEntryListQuery = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/CutOutAdd`,parms)
}

export const VenderQuery1 = () => {
    return service.post<any,any>(`/back/getBaseDetailQuery?baseType=${'CUT_VENDOR'}&itemName=${''}`)
}

export const VenderQuery2 = () => {
    return service.post<any,any>(`/back/getBaseDetailQuery?baseType=${'CUT_TYPE'}&itemName=${''}`)
}

export const VenderQuery3 = () => {
    return service.post<any,any>(`/back/getBaseDetailQuery?baseType=${'CUT_WAREHOUSE'}&itemName=${''}`)
}

// 取冲刀部位
export const TakeThePunchingPart = (slipNo:string,cutNo:string) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/CutOutDetPart?slipNo=${slipNo}&cutNo=${cutNo}`)
}

// 冲刀明细删除
export const deleteActive = (slipNo:string,parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/CutOutDetDelete?slipNo=${slipNo}`,parms)
}

// 更新
export const ubdateList = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/CutOutUp`,parms)
}